import request from '@/utils/request';

export function selectAll() {
  return request({
    url: `/MaintenanceRecord/kuixian/selectAll`,
    method: 'get'
  });
}

export function addKuixian(data) {
  return request({
    url: `/MaintenanceRecord/kuixian/add`,
    method: 'post',
    data: data
  });
}

export function updateKuixian(kxid, data) {
  return request({
    url: `/MaintenanceRecord/kuixian/update/${kxid}`,
    method: 'put',
    data: data
  });
}

export function deleteKuixian(kxid) {
  return request({
    url: `/MaintenanceRecord/kuixian/delete/${kxid}`,
    method:"delete"
  });
}

export function downloadKuixian() {
  return request({
    url: `/MaintenanceRecord/kuixian/download`,
    method: 'GET',
    responseType: 'blob'
  });
}